import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:layout-dashboard',
      order: 1,
      title: $t('page.console.title'),
    },
    name: 'Console',
    path: '/console',
    redirect: '/console/task-pool',
    children: [
      {
        name: 'TaskPool',
        path: '/console/task-pool',
        component: () => import('#/views/system/user/index.vue'),
        meta: {
          icon: 'fa6-solid:user',
          title: $t('page.console.taskPool'),
        },
      },
    ],
  },
];

export default routes;
